﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NotaCreditoReadForm.aspx.cs" 
Inherits="UILGestion.VentaAdmin.OrdenVenta.NotaCreditoReadForm " %>



<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="lib" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>








<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>NOTA DE CREDITO</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
    <script src="../../Scripts/jquery-1.5.2.min.js" type="text/javascript"></script>
   <script type="text/javascript">
       $(document).ready(function () {
           $(document).bind('contextmenu', function (e) {
               return false;
           });
       });
</script>

    <script src="../../Scripts/SearchResult.js" type="text/javascript"></script>

 <script type="text/javascript">
<!--

     function goPage() {

         var idproyecto = document.getElementById("idProyecto").value;
         var internalid = document.getElementById("internalID").value;
         window.open('../../Rpt/PrintForm.aspx?type=DOCUMENTOVENTA&id=' + internalid.toString() + '&idProyecto=' + idproyecto);
     }

-->
</script>

    <style type="text/css">
        .style1
        {
            height: 24px;
        }
    </style>
    </head>
<body>


    <form id="form1" runat="server">
     <input id="internalID" type="hidden" runat="server" />
     <input id="idEtapa" type="hidden" runat="server" />
      <input id="paginaAnt" type="hidden" runat="server" />
      <input id="idProyecto" type="hidden" runat="server" />
      
   
  <uc1:menuCtrl ID="menuCtrl1" runat="server" />
    
      <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
      EnableScriptGlobalization="true"  
     EnablePartialRendering="true" />
    
    <asp:Panel ID="pnlMain" runat="server"  
    CssClass="Heading secTitle AreaHeading ms-crm-List-Header "  >
    <asp:Label ID="Label2" runat="server" Text="NOTA CREDITO" style="font-size: large; color: #960818"></asp:Label>
</asp:Panel>
     
  <asp:Panel ID="PanelButtom" runat="server"    class="ms-crm-Form-Body" >
                 <table  width="100%">
                 <tr>
                 <td  width="80%">
                 
   <table >
<tr>

        <td>
    <asp:Button ID="refreshBTN" runat="server" Text="Restablecer"   CssClass="ms-crm-List-Header" onclick="button" 
          /></td> 
           <td>
   <%-- <asp:Button ID="EditarBTN" runat="server" Text="Editar"   CssClass="ms-crm-List-Header" onclick="button" 
          />--%></td> 
        <td>
    <asp:Button ID="nuevoBTN" runat="server" Text="Nuevo"   CssClass="ms-crm-List-Header"  onclick="button"
          /></td> 

          
        <td>
    <asp:Button ID="eliminarBTN" runat="server" Text="Eliminar"   CssClass="ms-crm-List-Header"  onclick="button" OnClientClick="return confirm('Usted quiere Eliminar el Documento Venta?')"
          /></td> 
 
   <td>
    <asp:Button ID="AnularBTN" runat="server" Text="Anular"   CssClass="ms-crm-List-Header"  onclick="button" OnClientClick="return confirm('Usted quiere Anular el Comparativo?')"
          /></td> 
 
   <td>
    <asp:Button ID="ListaBTN" runat="server" Text="Lista"   CssClass="ms-crm-List-Header" Width="65px"  onclick="button"
          /></td> 

           <td>
      <a href="#"    onclick="goPage();return true"><img  src="../../Images/printer.gif"></image></a></td> 
</tr>
</table>
                 </td>
                 <td>
               
                     <asp:Button ID="anteriorBTN" runat="server" CssClass="ms-crm-List-Header" 
                         onclick="button" Text="Anterior" />
                         </td>
                         <td>
                     <asp:Button ID="siguienteBTN" runat="server" CssClass="ms-crm-List-Header" 
                         onclick="button" Text="Siguiente" />
               
                 </td>
                 </tr>
                 </table>
 </asp:Panel>
  <asp:Panel ID="PanelBody" runat="server"  BackColor="white" >            
 

                <table>
                   
                    <tr>
                        <td rowspan="11" valign="top"  >
               
                                     <table>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Tipo Documento:</td>
                                             <td width="280px">
                                                <b style="font-size:medium; color: #960818"> <asp:Label ID="tipoDocumentoDDL" runat="server" 
                                                      /></b>
                                                 
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Num Documento:</td>
                                             <td width="280px">
                                                <b style="font-size:medium"> <asp:Label ID="numDocumento" runat="server" Text=""></asp:Label></b>
                                                 
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Fecha:</td>
                                             <td width="280px">
                                                 <asp:Label ID="fechaTXT" runat="server" Width="70px" />
                                                 
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Cliente: </td>
                                             <td width="280px">
                                                 
                                                 <asp:HyperLink ID="clienteLBL" runat="server" ForeColor="Blue" ToolTip="Ir al Cliente"></asp:HyperLink>
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Doc Cliente:</td>
                                             <td width="280px">
                                                 <asp:Label ID="tipoDocumento" runat="server"></asp:Label>:
                                                 <asp:Label ID="numDocumentoClienteTXT" runat="server"></asp:Label>
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100px" valign="bottom">
                                                 Direccion:</td>
                                             <td width="280px">

           

                                                 <asp:Label ID="direccionLBL" runat="server" Text=""></asp:Label>

           

                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 &nbsp;</td>
                                             <td width="280px">
                                                 &nbsp;</td>
                                         </tr>
                           
                                         <tr>
                                             <td align="right" width="100px">
                                                 Unidad Inmobiliaria:</td>
                                             <td width="280px">
                                                 <asp:HyperLink ID="UILBL" runat="server" ForeColor="Blue" ToolTip="Ir a la Unidad Inmobiliaria"></asp:HyperLink>
                                             </td>
                                         </tr>
                           
                        </table>
               
                        </td>
                    </tr>
                  
               
                    <tr >
                        <td style="text-align: right" valign="top">
                       
                            Orden Venta:</td>
                        <td valign="top">
                            <asp:HyperLink ID="OrdenVentaHLK" runat="server" ForeColor="Blue" ToolTip="Ir a Orden de Venta"></asp:HyperLink>
                        </td>
                        <td rowspan="6" align="right" width="180px" valign="top" >
                           
                            <asp:UpdatePanel ID="totalUPNL" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                            
                       

                            <table class="PanelTotales">
                                <tr>
                                    <td align="right" width="100px">
                                        Mo. Inafecto</td>
                                    <td align="right" width="120px">
                                        <asp:Label ID="simbol1LBL" runat="server"></asp:Label>
                                        <asp:Label ID="montoInafectoLBL" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Mo. Afecto</td>
                                    <td align="right" width="120px">
                                        <asp:Label ID="simbol2LBL" runat="server"></asp:Label>
                                        <asp:Label ID="montoAfectoLBL" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        IGV:</td>
                                    <td align="right" valign="100px">
                                        <asp:Label ID="simbol3LBL" runat="server"></asp:Label>
                                        <asp:Label ID="totalIGVLBL" runat="server"></asp:Label>
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Total:</td>
                                    <td align="right" valign="100px">
                                        <asp:Label ID="simbol4LBL" runat="server"></asp:Label>
                                        <asp:Label ID="totalLabel" runat="server"></asp:Label>
                                    </td>
                                </tr>
                            </table>


                                 </ContentTemplate>
                            </asp:UpdatePanel>
                           
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="text-align: right" valign="top">
                            Moneda:</td>
                        <td valign="top">
                            <asp:Label ID="monedaLBL" runat="server"></asp:Label>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr >
                        <td align="right" valign="top" width="100px" >
                            Emisor:</td>
                        <td >
                            <asp:Label ID="vendedorLBL" runat="server"></asp:Label>
                        </td>
                        <td >
                          
                            </td>
                    </tr>
                    <tr>
                        <td align="right" valign="top" width="100px">
                            Comentario:</td>
                        <td>
                            <asp:Label ID="comentarioTXT" runat="server" Height="70px" Width="200px" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="right" valign="top" width="100">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>






<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
<asp:TabPanel ID="itemTPNL" HeaderText="Item" 
runat="server">
<ContentTemplate>
<asp:GridView ID="itemGridView" runat="server"
               SkinID="GridView"
                AutoGenerateColumns="False"
                ShowHeaderWhenEmpty="True"
               >
               
               <Columns>

               <asp:BoundField DataField="codigo" headerText="CODIGO"><HeaderStyle Width="80px" />
               </asp:BoundField>
               <asp:BoundField DataField="descripcion" headerText="DESCRIPCION" ><HeaderStyle Width="450px" />
               </asp:BoundField>
               <asp:BoundField
                  DataField="totalStr" headerText="TOTAL" DataFormatString="{0:N}"><HeaderStyle Width="90px" />
                  <ItemStyle HorizontalAlign="Right" /></asp:BoundField>
                  
                   </Columns>
                   </asp:GridView>
                   
                   
</ContentTemplate>
                   

</asp:TabPanel>



</asp:TabContainer>
   
   
   </asp:Panel>
     
     
     
   
     
     
    </form>
   
    </body>
</html>
